#include <iostream>
using namespace std;
class A{
  int aa;
public:
  A(){ cout<<"A()"<<endl;}
  ~A(){cout<<"~A()"<<endl;}
};

int main()
{
  new A;
  new A*;
  new A&;//new cannot be applied to a reference type
  return 0;
}
